home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16906 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: mail2news.demon.co.uk!tsys.demon.co.uk
  2. From: Tom Wheeley <tomw@tsys.demon.co.uk>
  3. Newsgroups: comp.lang.ada,comp.lang.c,comp.lang.c++,comp.edu
  4. Subject: Re: ANSI C and POSIX (was Re: C/C++ knocks the crap out of Ada)
  5. Date: Fri, 12 Apr 96 03:23:56 GMT
  6. Organization: City Zen FM
  7. Message-ID: <829279436snz@tsys.demon.co.uk>
  8. References: <JSA.96Feb16135027@organon.com> <dewar.829048603@schonberg> <4kets3$ic0@news-s01.ny.us.ibm.net> <829194658snz@tsys.demon.co.uk> <DppsHq.1Ar@world.std.com>
  9. Reply-To: tomw@tsys.demon.co.uk
  10. X-NNTP-Posting-Host: tsys.demon.co.uk
  11. X-Newsreader: Demon Internet Simple News v1.30
  12. X-Sig-By: Tomsystems Quote v1.2.  (c)1996 Tom Wheeley, tomw@tsys.demon.co.uk
  13. X-Mail2News-Path: tsys.demon.co.uk
  14.  
  15. In article <DppsHq.1Ar@world.std.com>
  16.            bobduff@world.std.com "Robert A Duff" writes:
  17.  
  18. > >Myself, I would see this auto-stop idea as a _feature_ of read().  features
  19. > >can only be relied upon portably if they are positively documented in POSIX.
  20. > >This feature is not therefore portable, as POSIX is muddy on the matter.
  21. > >
  22. > >I suppose in c.l.c speak, it would be called `implementation-defined'.
  23. > If POSIX wants to make it implementation defined, or undefined, or
  24. > whatever, then it should say so explicitly.  Making something undefined
  25. > by forgetting to define it is bad style.
  26.  
  27. I didn't say it was right, I just said that's how it is.  Although it seems
  28. that POSIX falls short of what is desired by many people, you cannot expect it
  29. to specify the definition for every possible case.
  30.  
  31. As a programmer, you should know what to do if the spec does fall short, and
  32. that is to be conservative with what you give out, and liberal in what you
  33. receive; in the spirit of RFCs.
  34.  
  35. imho, expecting read() to stop at the end of the file, despite asking it to
  36. read 1000 bytes is being liberal with what you give out.
  37.  
  38. .splitbung
  39. -- 
  40. * TQ 1.0 * The 'Just So Quotes'.
  41. "I'm a paranoid agnostic. I doubt the existence of God, but I'm sure there is
  42. some force, somewhere, working against me." --Marc Maron
  43.